package org.dey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dey.entity.Result;
import org.dey.pojo.Menu;
import org.dey.pojo.PageVo;
import org.dey.pojo.User;

import java.util.List;

/**
 * @author deyran
 * @classname
 * @see IService
 */
public interface UserService extends IService<User> {

    List<User> USER_LIST();

    //查
    public PageVo<User> queryuser(User user, int pageno, int pagesize);

    //增
    public Result insertuser(User user);

    //删
    public Result deluser(int id);

    //修改前先根据id查到该数据
    public User queryuserbyid(int id);

    //根据id修改
    public Result updateuserbyid(User user);

    //用户登录可以访问那些菜单
    public List<Menu> queryallmenu(String name, int pid);

    int LOGIN(User user);

    Result addroleqq(int userid, int roleid);
}
